<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->fetch("head"); ?>
</head>

<body>
<div class="page-bg top"><img src="/image/page-bg-top.png" alt="" width="100%" height="260" /></div>
<div class="page-bg bottom"><img src="/image/page-bg-bottom.png" alt="" width="100%" height="160" /></div>
<div id="site">
	<div id="header">
		<a id="logo" href="/" title="<?php __("Početna strana"); ?>"><img src="/image/eurogel.png" alt="Eurogel logo" /></a>
		<?php echo $this->fetch("searchbox"); ?>
		<?php echo $this->fetch("language_selector"); ?>
		<?php echo $this->fetch("banner"); ?>
	</div>
	<div id="sidebar">
		<?php echo $this->fetch("sidebar"); ?>
	</div>
	<div id="content">
		<?php echo $__content; ?>
	</div>
	
	<br clear="all" />
	<div id="footer">
		&copy; 2011 <?php __("Sva prava su zadržana"); ?>. Eurogel
		<br />
		<?php __("Dizajn i razvoj"); ?> <a href="http://www.ortopro-design.info" target="_blank">OrtoPro</a>.
	</div>
	<?php if($_SESSION["user"]): ?>
		<div id="control-panel">
			<?php 
				$page = $this->request->params[0];
				$page = $page ? $page : "index"; 
			?>
			<a href="javascript:void(0)" onclick="PageEdit('<?php echo $page; ?>');"><?php __("Izmena strane"); ?></a>
			<a href="/admin/logout"><?php __("Odjava"); ?></a>
		</div>
	<?php endif; ?>
</div>
<div class="throbber"><?php __("Molim sačekajte"); ?>...</div>
<script type="text/javascript">PageBackgroundPosition();</script>
</body>
</html>